<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script src="https://unpkg.com/vue@next"></script>
<div id="app">
    <!-- 如果组件有多个根节点，则不会合并到根节点   -->
    <todo-item class="show"></todo-item>

</div>
<script>
    const vueOpt = {
        data() {
            return {}
        }
    }

    const app = Vue.createApp(vueOpt)

    app.component('todo-item', {
        data() {
            return {}
        },

        template: `
            <div class="show1">111</div>
            <div class="show2">222</div>
        `
    });

    app.mount('#app')
</script>

</body>
</html>
